package com.hdax.dm.controller;

import com.hdax.dm.base.Image;
import com.hdax.dm.service.ImageService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(path = "/base")
public class ImageController {

    @Autowired
    private ImageService imageService;
    /**
     * 首页轮播图
     */
    @PostMapping(path = "/index/carousel")
    public CommonResponse<List<Image>> carousel(){
        return imageService.imageCarousels();
    }

}
